If it is a migraine and it happens alot you should go see your doctor,they might prescribe something like imigrin which is a spray you put up your nose when you feel a migraine starting if i remember right.
If its a sinus infection you'll probably need to get an antibiotic.
You should go see your doctor anyway as it might not be either of these things.